package com.manage.service;

import com.manage.pojo.Addresses;
import com.manage.pojo.operation.AddressesList;
import com.manage.utils.PagedResult;

public interface AddressesService {

    /**
     * @Description: 判断地址id是否存在
     */
    public boolean queryAddressesIsExit(String addressId);

    /**
     * @Description: 用户地址添加保存
     */
    public void saveAddresses(Addresses address);

    /**
     * @Description: 地址删除
     */
    public void addressDelete(String addressId);

    /**
     * @Description: 地址更新
     */
    public void addressUpdate(Addresses address);

    /**
     * @Description: 根据地址id查询地址详细信息
     */
    public AddressesList queryAddressesInfoByAddressId(String addressId);

    /**
     * @Description: 根据用户id查询地址列表
     */
    public PagedResult queryAddressesByUserId(Integer page, Integer pageSize, String userId);

}
